const api = 'https://www.szpprent.com/api/';
//const api = 'http://192.168.1.190:60812/api/admin/';
//const api2 = 'http://192.168.1.132:60815/api/';
const api2 = 'https://invitedinner.icebartech.com/api/';

module.exports = {
    //管理员
    ADMIN: {
        LOGINOUT: api + 'admin/user/logout', // 登出接口
        LOGIN: api + 'admin/user/login', //登录接口
        UPDUSERPWD: api + 'admin/user/updUserPWD', //重置密码接口
    },
    COMMON: {
        UPLOAD: api + 'base/sys/h5/getOSSUploadUrl',
        GETCITYLIST: api + 'admin/syscode/cityGroupByProvinceCode',
        GETPROVINCELIST: api + 'admin/syscode/provinceGroup'
    },
    MESSAGE: { //消息管理
        ADD: api + "admin/message/add",
        DELETE: api + "admin/message/delete",
        DETAIL: api + "admin/message/findDetail",
        LIST: api + "admin/message/findPage",
        UPDATE: api + "admin/message/update",
    },
    ANNOUNCE: { //公告管理
        ADD: api + "admin/announce/add",
        DELETE: api + "admin/announce/delete",
        DETAIL: api + "admin/announce/findDetail",
        LIST: api + "admin/announce/findPage",
        UPDATE: api + "admin/announce/update",
    },
    LANDLORD: { //后台房东
        ADD: api + "admin/landlord/add",
        DELETE: api + "admin/landlord/delete",
        DETAIL: api + "admin/landlord/findDetail",
        LIST: api + "admin/landlord/findPage",
        UPDATE: api + "admin/landlord/update",
    },
    HOUSE: { //后台房源
        ADD: api + "admin/house/add",
        DELETE: api + "admin/house/delete",
        DETAIL: api + "admin/house/findDetail",
        LIST: api + "admin/house/findPage",
        UPDATE: api + "admin/house/update",
        EXPORT: api + "admin/house/exportExcel",

    },
    BUILDING: { //后台小区
        ADD: api + "admin/building/add",
        DELETE: api + "admin/building/delete",
        DETAIL: api + "admin/building/findDetail",
        LIST: api + "admin/building/findPage",
        FINDLIST: api + "admin/building/findList",
        UPDATE: api + "admin/building/update"
    },
    ORDER: { //后台订单
        DETAIL: api + "admin/order/findDetail",
        LIST: api + "admin/order/findPage",
        EXPORT: api + "admin/order/exportExcel",
    },
    RENTALBACK: {
        DETAIL: api + "admin/rentalback/findDetail",
        LIST: api + "admin/rentalback/findPage",
        EXPORT: api + "admin/rentalback/exportExcel"
    },
    CONTRACT: { //后台合同
        DETAIL: api + "admin/rentalcontract/findDetail",
        LIST: api + "admin/rentalcontract/findPage",
    },
    //报修管理
    FAULT: {
        FINDDETAIL: api + 'admin/fault/findDetail',
        FINDPAGE: api + 'admin/fault/findPage'
    },
    //反馈管理
    FEEDBACK: {
        FINDHOUSEDETAIL: api + 'admin/housefeedback/findDetail',
        FINDHOUSEPAGE: api + 'admin/housefeedback/findPage',
        FINDSYSETAIL: api + 'admin/sysfeedback/findDetail',
        FINDSYSPAGE: api + 'admin/sysfeedback/findPage'
    },
    //操作管理
    OPSLOG: {
        FINDPAGE: api + 'admin/opslog/findPage',
        DETAIL: api + 'admin/opslog/findDetail'
    },
    //使用帮助
    HELP: {
        ADD: api + 'admin/help/add',
        UPDATE: api + 'admin/help/update',
        DELETE: api + 'admin/help/delete',
        FINDDETAIL: api + 'admin/help/findDetail',
        FINDPAGE: api + 'admin/help/findPage',
        FINDLIST: api + 'admin/help/findList'
    },
    SYSTEM: {
        ADMINUPLOADFILE: api + 'base/sys/admin/getOSSUploadUrl', //得到地址
        FINDAPPROLEBYPAGE: api + 'admin/role/findAppRoleByPage', // 分页获取角色列表
        GETALLAPPPERMISSION: api + 'admin/role/getAllAppPermission', // 获取所有权限列表
        GETROLEINFOBYID: api + 'admin/role/getRoleInfoByRoleId', // 获取角色详情
        DELETEROLEBYID: api + 'admin/role/deleteRoleByRoleId', // 删除角色记录
        SAVEAPPROLE: api + 'admin/role/saveAppRole', // 保存角色
    },
    USER: {
        FINDADMINUSERBYPAGE: api + 'admin/user/findAdminUserByPage', //  分页获取用户列表
        FINDUSERPERMISSIONS: api + 'admin/user/findUserPermissions', //  用户权限列表
        FINDADMINUSERDETAILBYUSERID: api + 'admin/user/findAdminUserDetailByUserId', // 用户详情
        SAVEADMINUSER: api + 'admin/user/saveAdminUser', // 保存用户
        DELETEADMINUSERBYID: api + 'admin/user/deleteAdminUserByUserId', // 删除
    },
    SYSVAR: {
        FINDPLATABOUTDETAIL: api + 'admin/sysvar/findPlatformAbout',
        SAVEPLATABOUT: api + 'admin/sysvar/setPlatformAbout',
        SAVEPHONE: api + 'admin/sysvar/setPlatformPhone',
        SAVEQQ: api + 'admin/sysvar/setPlatformQQ',
        FINDPHONE: api + 'admin/sysvar/findPlatformPhone',
        FINDQQ: api + 'admin/sysvar/findPlatformQQ',
        SETYEARRENT: api + 'admin/sysvar/setYearRentalDiscount',
        FINDYEARRENT: api + 'admin/sysvar/findYearRentalDiscount',
        SETWX: api + 'admin/sysvar/setPlatformWX',
        FINDWX: api + 'admin/sysvar/findPlatformWX'
    },
    RENTAL: {
        PAGE: api + 'admin/rental/findPage',
        DETAIL: api + 'admin/rental/findDetail',
        EXPORT: api + "admin/rental/exportExcel"
    },
    //后台统计
    STATS: {
        HOUSESTATUS: api + "admin/stats/findHouseStatus",
        RENTER: api + "admin/stats/findRentalRenterStatus",
        GETLONGRENT: api + "admin/stats/findrentalStatusInMonth",
        ELECTRIC: api + "admin/stats/findElectricfeeStatsInMonth",
        OTHERFEE: api + "admin/stats/findOtherfeeStatsInMonth",
        WATER: api + "admin/stats/findWaterfeeStatsInMonth",
        YEARRENT: api + "admin/stats/findRentalStats",
        ORDER: api + "admin/stats/findOrderPageInMonth",

        DAYRENTAL: api + "admin/stats/findDayRentalStats",
        LONGRENTAL: api + "admin/stats/findLongRentalStats",
        DAYRENTALLIST: api + "admin/stats/findDayRentalPage",
        LONGRENTALLIST: api + "admin/stats/findLongRentalOrderPage",
        WATERLIST: api + "admin/stats/findWaterfeePageInMonth",
        ELECTRICLIST: api + "admin/stats/findElectricfeePageInMonth",

        DAYEXPORT: api+"admin/stats/exportDayRentalExcel",
        ELECTRICEXPORT: api+"admin/stats/exportElectricfeeExcel",
        LONGEXPORT: api+"admin/stats/exportLongRentalExcel",
        WATEREXPORT: api+"admin/stats/exportWaterfeeExcel"
    },
    //租客接口
    TENANT: {
        DETAIL: "",
        LIST: ""
    },
    //所有房东的接口这里展示
    // 房东用户("L_"代表房东)
    LANDLORDUSER: { //房东用户
        ADD: "",
        DETAIL: api + "landlord/user/findDetail",
        MOBILECODE: "",
        LOGIN: api + "landlord/user/login",
        MINILOGIN: ""
    },
    //消息
    L_MESSAGE: {
        ADD: api + "landlord/message/add",
        DELETE: api + "landlord/message/delete",
        DETAIL: api + "landlord/message/findDetail",
        LIST: api + "landlord/message/findPage",
        UPDATE: api + "landlord/message/update"
    },
    //公告
    L_ANNOUNCE: {
        ADD: api + "landlord/announce/add",
        DELETE: api + "landlord/announce/delete",
        DETAIL: api + "landlord/announce/findDetail",
        LIST: api + "landlord/announce/findPage",
        UPDATE: api + "landlord/announce/update",
    },
    //房源
    L_HOUSE: {
        ADD: api + "landlord/house/add",
        ADDS: api + "landlord/house/adds",
        DELETE: api + "landlord/house/delete",
        DETAIL: api + "landlord/house/findDetail",
        LIST: api + "landlord/house/findPage",
        UPDATE: api + "landlord/house/update",
        L_GARDEN: api + "landlord/house/findGardenNames",
        L_UNIT: api + "landlord/house/findUnitNames",
        L_BUILD: api + "landlord/house/findBuildNames",
        EXPORT: api + "landlord/house/exportExcel",
    },
    //订单
    L_ORDER: {
        PUB: api+"landlord/order/pubOrder",
        CREATE: api + "landlord/order/createOrder",
        DETAIL: api + "landlord/order/findDetail",
        FINDLIST: api + "landlord/order/findList",
        LIST: api + "landlord/order/findPage",
        PUBORDER: api + "landlord/order/pubOrder",
        SETORDERPAID: api + "landlord/order/setOrderPaid", //确认收租
        EXPORT: api + "landlord/order/exportExcel",
        NEWORDER: api + "landlord/order/findNewOrdersByRentalId",
    },
    //小区
    L_BUILDING: {
        ADD: api + "landlord/building/add",
        DELETE: api + "/landlord/building/delete",
        DETAIL: api + "/landlord/building/findDetail",
        FINDLIST: api + "landlord/building/findList",
        LIST: api + "landlord/building/findPage",
        UPDATE: api + "landlord/building/update"
    },
    //退租
    L_RENTALBACK: {
        CONFIRM: api + "landlord/rentalback/confirm",
        CREATE: api + "landlord/rentalback/create",
        CREATEHOUSE: api + "landlord/rentalback/createByHouseId",
        DETAIL: api + "landlord/rentalback/findDetail",
        UPDATE: api + "landlord/rentalback/update",
        LIST: api + "landlord/rentalback/findPage",
        READOUTS: api + "landlord/rentalback/readouts",
        REFUSED: api + "landlord/rentalback/refused",
        EXPORT: api + "landlord/rentalback/exportExcel"
    },
    //合同
    L_CONTRACT: {
        DETAIL: api + "landlord/rentalcontract/findDetail",
        LIST: api + "landlord/rentalcontract/findPage",
        SIGN: api + "landlord/rentalcontract/sign"
    },
    L_SYSVAR: {
        FINDPLATABOUTDETAIL: api + 'landlord/sysvar/findPlatformAbout',
        SAVEPLATABOUT: api + 'landlord/sysvar/setPlatformAbout',
        SAVEPHONE: api + 'landlord/sysvar/setPlatformPhone',
        SAVEQQ: api + 'landlord/sysvar/setPlatformQQ',
        FINDPHONE: api + 'landlord/sysvar/findPlatformPhone',
        FINDQQ: api + 'landlord/sysvar/findPlatformQQ',
        SETYEARRENT: api + 'landlord/sysvar/setYearRentalDiscount',
        FINDYEARRENT: api + 'landlord/sysvar/findYearRentalDiscount',
        FINDWARNDAY: api + 'landlord/sysvar/findContractWarnDay',
        FINDLONGRENTWARNDAY: api + 'landlord/sysvar/findLongRentWarnDay',
        FINDRENTDAY: api + 'landlord/sysvar/findRentDay',
        SETCONTRACTWARNDAY: api + 'landlord/sysvar/setContractWarnDay',
        SETLONGRENTWARNDAY: api + 'landlord/sysvar/setLongRentWarnDay',
        SETRENTDAY: api + 'landlord/sysvar/setRentDay'
    },
    //报修管理
    L_FAULT: {
        FINDDETAIL: api + 'landlord/fault/findDetail',
        FINDPAGE: api + 'landlord/fault/findPage'
    },
    //反馈管理
    L_FEEDBACK: {
        FINDHOUSEDETAIL: api + 'landlord/housefeedback/findDetail',
        FINDHOUSEPAGE: api + 'landlord/housefeedback/findPage',
    },
    //租房管理
    L_RENTAL: {
        FINDPAGE: api + 'landlord/rental/findPage',
        FINDETAIL: api + 'landlord/rental/findDetail',
        DISUSE: api + 'landlord/rental/disuse',
        CREATE: api + 'landlord/rental/createRental',
        HOUSEDETAIL: api + "landlord/rental/findDetailByHouseId",
        L_GARDEN: api + "landlord/rental/findGardenNames",
        L_UNIT: api + "landlord/rental/findUnitNames",
        L_BUILD: api + "landlord/rental/findBuildNames",
        UNSETLIST: api + "landlord/rental/findUnsetReadoutsList",
        EXPORT: api+"landlord/rental/exportExcel"
    },
    //统计管理
    L_STATS: {
        HOUSESTATUS: api + "landlord/stats/findHouseStatus",
        RENTER: api + "landlord/stats/findRentalRenterStatus",
        GETLONGRENT: api + "landlord/stats/findrentalStatusInMonth",
        ELECTRIC: api + "landlord/stats/findElectricfeeStatsInMonth",
        OTHERFEE: api + "landlord/stats/findOtherfeeStatsInMonth",
        WATER: api + "landlord/stats/findWaterfeeStatsInMonth",
        YEARRENT: api + "landlord/stats/findRentalStats",
        ORDER: api + "landlord/stats/findOrderPageInMonth",

        DAYRENTAL: api + "landlord/stats/findDayRentalStats",
        LONGRENTAL: api + "landlord/stats/findLongRentalStats",
        DAYRENTALLIST: api + "landlord/stats/findDayRentalPage",
        LONGRENTALLIST: api + "landlord/stats/findLongRentalOrderPage",
        WATERLIST: api + "landlord/stats/findWaterfeePageInMonth",
        ELECTRICLIST: api + "landlord/stats/findElectricfeePageInMonth",

        DAYEXPORT: api+"landlord/stats/exportDayRentalExcel",
        ELECTRICEXPORT: api+"landlord/stats/exportElectricfeeExcel",
        LONGEXPORT: api+"landlord/stats/exportLongRentalExcel",
        WATEREXPORT: api+"landlord/stats/exportWaterfeeExcel"
    },
    //租客接口
    L_TENANT: {
        DETAIL: api + "landlord/tenant/findDetail",
        LIST: api + "landlord/tenant/findPage"
    },
    //房东水电表
    L_READOUTS: {
        ADD: api + "landlord/readouts/add",
        DELETE: api + "landlord/readouts/delete",
        DETAIL: api + "landlord/readouts/findDetail",
        LIST: api + "landlord/readouts/findPage",
        UPDATE: api + "landlord/readouts/update"
    },
    //提现
    L_UMFINTECH: {
        MEMBERTRADEINFO: api + 'landlord/umfintech/memberTradeInfo'
    }
}
